<%--
<%@ page contentType="text/html;charset=GBK"%> 
<%@ page import="org.jfree.data.general.DefaultPieDataset"%> 
<%@ page import="org.jfree.chart.JFreeChart"%> 
<%@ page import="org.jfree.chart.plot.PiePlot"%> 
<%@ page import="org.jfree.chart.ChartRenderingInfo"%> 
<%@ page import="org.jfree.chart.servlet.ServletUtilities"%> 
<%@ page import="org.jfree.chart.urls.StandardPieURLGenerator"%> 
<%@ page import="org.jfree.chart.entity.StandardEntityCollection"%> 
<%@ page import="org.jfree.chart.encoders.SunPNGEncoderAdapter"%> 
<%  
DefaultPieDataset data = new DefaultPieDataset();  
data.setValue("六月aaaaaaaaaaaaaaaaaaaaaaaaaaaa", 500);  
data.setValue("七月bbbbbbbbbbbbbbbbbbbbbbbbbbbbb", 580);  
data.setValue("八月vvvvvvvvvvvvvvvvvvvvvvvvvvvvv", 828);
PiePlot plot = new PiePlot(data);  
JFreeChart chart = new JFreeChart("title", JFreeChart.DEFAULT_TITLE_FONT, plot, true);  
chart.setBackgroundPaint(java.awt.Color.white); //可选，设置图片背景色  
//chart.setTitle("Welcome to Jfreechart !"); //可选，设置图片标题  
ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());  
//500是图片长度，300是图片高度  
String filename = ServletUtilities.saveChartAsPNG(chart, 500, 300, info, session);  
String graphURL = request.getContextPath() + "/servlet/DisplayChart?filename=" + filename;  
%> 
<HTML> 
<HEAD> 
<TITLE>Welcome to Jfreechart !</TITLE> 
</HEAD> 
<BODY> 
<P ALIGN="CENTER"> 
<img src="<%= graphURL %>" width=500 height=300 border=0 usemap="#<%= filename %>"> 
</P> 
</BODY> 
</HTML> 
 --%>
 
<%@ page import="org.apache.commons.lang3.StringUtils"%>
<%@ page import="com.model.Vote"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="user-index-head.jsp"%> 
<%
	String str = (String)request.getAttribute("ret");
	if(!StringUtils.isEmpty(str)){
		out.print("<script>alert('"+str+"');</script>");
	}
%>
<link rel="stylesheet" href="<%=path %>/js/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=path %>/js/kindeditor/plugins/code/prettify.css" />
<script src="<%=path %>/js/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="<%=path %>/js/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="<%=path %>/js/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script src="<%=path %>/js/date/WdatePicker.js"></script>
<script src="<%=path %>/js/module/vote.js"></script>
<script>

var editor;
KindEditor.ready(function(K) {
editor = K.create('#info', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'source','undo','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr']
});

});
</script>
<div class="content">
	<div align="center">
		<jsp:include page="../chart.jsp" flush="true">
			<jsp:param value="${chartData.graphURLOut }" name="graphURL"/>
			<jsp:param value="${chartData.fileNameOut }" name="fileName"/>
			<jsp:param value="${chartData.width }" name="chartWidth"/>
			<jsp:param value="${chartData.height }" name="chartHeight"/>
		</jsp:include>
	</div>
       
    <div class="cLineB">
 	</div>     
    <div class="msgWrap bgfc">
	    <div align="center">
	    	<a href="<%=path %>/user/vote!index.do" class="btnGray vm">返回</a>
	    </div>
  	</div> 
</div>
<include file="Public:footer"/>